package org.genntii.smdomain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@TableName("User")
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long  steamid;
    private String username;
    private String password;
    private String nickname;
    private String description;
    private String phone;
    private String email;
    private String avatar;
    private String salt; // 密码盐
    private LocalDate birthday;
    private Integer cityCode;
    private String gender;
    private String status;
    private String profileVisible;
    private String backgroundImage;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    private LocalDateTime loginTime;
}
